package model;

public class RoffPolygonEdge {

    public int startIndex;
    public int endIndex;

    public RoffPolygonEdge() {
        startIndex = 0;
        endIndex = 0;
    }

    public RoffPolygonEdge(int firstIndex, int secondIndex) {
        if (firstIndex > secondIndex) {
            startIndex = secondIndex;
            endIndex = firstIndex;
	} else {
            startIndex = firstIndex;
            endIndex = secondIndex;
        }
        // Note that this allows non-existant edges, where the
        // start point is the same as the end point. This might
        // need to be checked later for some uses.
    }
}
